package io.terminus.chain;

import io.terminus.manager.FlagManager;

/**
 * Created by Stay on 2017/6/24  11:50.
 */
public class FourthHandler extends Handler {
    /**
     * 判断是否为第三个数的倍数
     *
     * @param num
     */
    public void handle(Integer num) {
        if (FlagManager.getInstance().getFlagMap().get("threeFlag")) {
            str += "Whizz";
        } else if (nextHandler == null) {
            if (!FlagManager.getInstance().getFlagMap().get("allFlag")) {
                str = num.toString();
            }
        }
    }
}
